<?php
if (!$_POST):
    ?>
    <!DOCTYPE html >
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>From</title>
        <style lang="scss">
            table {
                width: 500px;
                height: 300px;
            }

            td {
                text-align: right;
            }
        </style>
    </head>
    <body>
    <form action="post.php" method="post">
        <table>
            <tr>
                <td>name:</td>
                <td>
                    <label>
                        <input type="text" name="name">

                    </label>
                </td>
            </tr>
            <tr>
                <td>password:</td>
                <td>
                    <input type="password" name="password">
                </td>
            </tr>
            <tr>
                <td>Email:</td>
                <td>
                    <input type="text" name="Email">
                </td>
            </tr>
            <tfoot>
            <td><input type="submit" value="提交"></td>
            <td><input type="reset" value="重置"></td>
            </tfoot>
        </table>
    </form>
    </body>
    </html>
<?php
else:
    header( 'content-type:text/html;charset=utf-8' );
    echo '名称:' . $_POST['name'] . '<br/>';
    echo '密码:' . $_POST['password'] . '<br/>';
    echo '邮箱:' . $_POST['Email'] . '<br/>';
endif;
?>